package com.lyz.extendsdemo;

/**
 * @ClassName People
 * @Description 人类 子类（学生，老师）
 * @Author 2214361854
 * @Date 2022/2/18 10:36
 * @Version 1.0
 */
public class People {
    private String name;
    private int age;

    public void queryCourse (){
        System.out.println(this.name+"查看课表");
    }

    public People() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
